package la.iok.hzsvn.lewin.movie.operation.model;

import la.iok.hzsvn.lewin.movie.core.operation.param.ChargeOrderBaseParam;

import java.util.Objects;

public class ChargeOrderParam extends ChargeOrderBaseParam {
    /**
     * 房间id
     */
    private Long roomId;

    public Long getRoomId() {
        return roomId;
    }

    public void setRoomId(Long roomId) {
        this.roomId = roomId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof ChargeOrderParam)) return false;
        if (!super.equals(o)) return false;
        ChargeOrderParam param = (ChargeOrderParam) o;
        return Objects.equals(roomId, param.roomId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), roomId);
    }
}
